const searchService = require('../service/search.servive')

class searchController {
    async search(ctx, next) {
        const { keyworld } = ctx.query
        const result = await searchService.search(keyworld)
        ctx.body = result
    }
}

module.exports = new searchController()
